/*
 * @Author: wuqingchun
 * @Date: 2024-07-29 15:46:21
 * @Description: 事件调度器（分发器）
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-07-31 16:29:14
 */
#ifndef __EVENT_DISPATCHER_H__
#define __EVENT_DISPATCHER_H__

#include "ev_struct.h"

EV_DISPATCHER_S* EV_dispatcher_Create();
void EV_dispatcher_Destroy(EV_DISPATCHER_S* pstDP);
void EV_dispatcher_Dispatch(EV_DISPATCHER_S* pstDP);

int EV_dispatcher_AddEvent(EV_DISPATCHER_S* pstDP, int iEventFd, unsigned int uiFlags, void (*pfCallback)(int, void*), void* pCBArg);
int EV_dispatcher_DeleteEvent(EV_DISPATCHER_S* pstDP);



#endif //__EVENT_DISPATCHER_H__